from flask_login import current_user

class Service():
    def get_current_user(self):
        u = current_user
        return {'role': int(u.role), 'username':u.username}